Skip to content

Conversation

dishmaker
Copy link
Contributor

@dishmaker dishmaker commented Jul 7, 2025

This PR is a step towards removing overhead of read_nested for primitive types, that was introduced in #1877.

@tarcieri
Copy link
Member

tarcieri commented Jul 7, 2025

I'm not sure what the goal of this PR is. I think there's some potential merit to this statement, but it also seems unrelated to this PR:

I think reader.encoding_rules() should be generic, so BER optimizes out during compile time.

I played with that in der/ber-reader, however it does preclude runtime selection of DER vs BER. That said, I still think it's an option worth considering.

@dishmaker
Copy link
Contributor Author

The main goal is to optimize read_nested where it isn't necessary (e.g. primitive octet string).

But that probably wouldn't happen, because encoding_rules is a runtime value.

@dishmaker
Copy link
Contributor Author

Because this PR is premature optimization, I'll leave it for now.

@dishmaker dishmaker marked this pull request as ready for review July 8, 2025 11:07
@dishmaker dishmaker marked this pull request as draft August 1, 2025 13:23
@dishmaker
Copy link
Contributor Author

Continued in #2011

@dishmaker dishmaker closed this Aug 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants